package com.otitan.la.forest.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 行政区划表
 *
 * @author sunke
 * @email xxx
 * @date 2020-10-09 15:04:19
 */
@Data
@ApiModel("行政区划表VO")
public class AreaVO {
    private static final long serialVersionUID = 1L;

    /**
     * 行政区划id
     */
    @ApiModelProperty(value = "行政区划id")
    private String id;

    /**
     * 地区名称
     */
    @ApiModelProperty(value = "地区名称", required = false)
    private String areaName;

    /**
     * 地区编码
     */
    @ApiModelProperty(value = "地区编码", required = false)
    private String areaCode;

    /**
     * 上级地区编码
     */
    @ApiModelProperty(value = "上级地区编码", required = true)
    private String parentAreaCode;

    /**
     * 上级ID
     */
    @ApiModelProperty(value = "上级ID", required = false)
    private String parentId;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序", required = false)
    private Integer orderNo;

    /**
     * 等级
     */
    @ApiModelProperty(value = "等级", required = false)
    private Integer grade;

    /**
     * 生效日期
     */
    @ApiModelProperty(value = "生效日期", required = false)
    private Date effectDate;

    /**
     * 失效日期
     */
    @ApiModelProperty(value = "失效日期", required = false)
    private Date uneffectDate;

    /**
     * 是否有子级
     */
    @ApiModelProperty(value = "是否有子级")
    Boolean Leaf = false;

    /**
     * 子级集合
     */
    @ApiModelProperty(value = "子菜单集合")
    private List<AreaVO> children = new ArrayList<>();

}
